<?php
class ORMv1customer extends ORMBase {
  public function __construct() {
    parent::__construct('v1customer');
  }

  public function __toEpObject($myManager, $epObject, $object) {
    $epObject->trackId = isset($object->trackId) ? $object->trackId : '';
    $epObject->createdDate = (isset($object->createdDate) && $object->createdDate) ? SimpleDate::toStamp($object->createdDate) : 0;
    $epObject->bridename = isset($object->bridename) ? $object->bridename : '';
    $epObject->brideaddrLn1 = isset($object->brideaddrLn1) ? $object->brideaddrLn1 : '';
    $epObject->brideaddrLn2 = isset($object->brideaddrLn2) ? $object->brideaddrLn2 : '';
    $epObject->bridephone = isset($object->bridephone) ? $object->bridephone : '';
    $epObject->bridemobile = isset($object->bridemobile) ? $object->bridemobile : '';
    $epObject->brideemail = isset($object->brideemail) ? $object->brideemail : '';
    $epObject->groomname = isset($object->groomname) ? $object->groomname : '';
    $epObject->groomaddrLn1 = isset($object->groomaddrLn1) ? $object->groomaddrLn1 : '';
    $epObject->groomaddrLn2 = isset($object->groomaddrLn2) ? $object->groomaddrLn2 : '';
    $epObject->groomphone = isset($object->groomphone) ? $object->groomphone : '';
    $epObject->groommobile = isset($object->groommobile) ? $object->groommobile : '';
    $epObject->groomemail = isset($object->groomemail) ? $object->groomemail : '';
    $epObject->note = isset($object->note) ? $object->note : '';
    $epObject->ceremony = isset($object->ceremony) ? $object->ceremony : '';
    $epObject->culture = isset($object->culture) ? $object->culture : '';
    $epObject->culture2 = isset($object->culture2) ? $object->culture2 : '';
    $epObject->reception = isset($object->reception) ? $object->reception : '';
    $epObject->source = isset($object->source) ? $object->source : '';
    $epObject->userAccount = isset($object->userAccount) ? $object->userAccount : '';
    $epObject->reminderNote = isset($object->reminderNote) ? $object->reminderNote : '';
    $epObject->cancelled = isset($object->cancelled) ? $object->cancelled : 0;
    $epObject->cancelledDate = (isset($object->cancelledDate) && $object->cancelledDate) ? SimpleDate::toStamp($object->cancelledDate) : 0;
    $epObject->cancelledOperator = isset($object->cancelledOperator) ? $object->cancelledOperator : '';
    $epObject->cancelledMessage = isset($object->cancelledMessage) ? $object->cancelledMessage : '';
    $epObject->admAppr = isset($object->admAppr) ? $object->admAppr : 0;
    return $epObject;
  }

  public function __toObject($myManager, $epObject, $object) {
    $object->id = $epObject->oid;
    $object->trackId = $epObject->trackId;
    $object->createdDate = ($epObject->createdDate != 0) ? SimpleDate::fromStamp($epObject->createdDate) : 0;
    $object->bridename = $epObject->bridename;
    $object->brideaddrLn1 = $epObject->brideaddrLn1;
    $object->brideaddrLn2 = $epObject->brideaddrLn2;
    $object->bridephone = $epObject->bridephone;
    $object->bridemobile = $epObject->bridemobile;
    $object->brideemail = $epObject->brideemail;
    $object->groomname = $epObject->groomname;
    $object->groomaddrLn1 = $epObject->groomaddrLn1;
    $object->groomaddrLn2 = $epObject->groomaddrLn2;
    $object->groomphone = $epObject->groomphone;
    $object->groommobile = $epObject->groommobile;
    $object->groomemail = $epObject->groomemail;
    $object->note = $epObject->note;
    $object->ceremony = $epObject->ceremony;
    $object->culture = $epObject->culture;
    $object->culture2 = $epObject->culture2;
    $object->reception = $epObject->reception;
    $object->source = $epObject->source;
    $object->userAccount = $epObject->userAccount;
    $object->reminderNote = $epObject->reminderNote;
    $object->cancelled = $epObject->cancelled;
    $object->cancelledDate = ($epObject->cancelledDate != 0) ? SimpleDate::fromStamp($epObject->cancelledDate) : 0;
    $object->cancelledOperator = $epObject->cancelledOperator;
    $object->cancelledMessage = $epObject->cancelledMessage;
    $object->admAppr = $epObject->admAppr;
    return $object;
  }
}
?>
